package com.enzoism.springboot.dive.mock;

import com.enzoism.springboot.dive.util.SpringContextUtil;

import java.util.Random;

public class MockDataSourceRunnable implements Runnable{
    @Override
    public void run() {
        MockDataSource mockDataSource = SpringContextUtil.getBean("mockDataSource", MockDataSource.class);
        int i = new Random().nextInt(20);
        mockDataSource.setCoutNum(i);
    }
}
